import { IPSFormulaDEField } from './ipsformula-defield';
import { PSDEFieldImpl } from './psdefield-impl';

export class PSFormulaDEFieldImpl extends PSDEFieldImpl implements IPSFormulaDEField {
  get formulaColumns(): string {
    return this.M.formulaColumns;
  }

  get formulaFormat(): string {
    return this.M.formulaFormat;
  }

  get formulaDEField(): boolean {
    return this.M.formulaDEField;
  }

  get phisicalDEField(): boolean {
    return this.M.phisicalDEField != null ? this.M.phisicalDEField : true;
  }

  get cls(): string {
    return 'PSFormulaDEFieldImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'dataentity.defield.IPSFormulaDEField') return true;
    return super.instanceof(cls);
  }
}
